package lab02.test22;

import java.util.*;

public class Test22 {
    public static void main(String[] args) {
        Scanner x = new Scanner(System.in);

        System.out.print("请输入字符串：");
        String a = x.nextLine();

        char[] arr = a.toCharArray();//将字符串转化为字符数组
        System.out.println("输出：");
        for (int i = 0; i < arr.length; i++) {


            //ascll码65到90为大写字母
            if (arr[i] >= 65 && arr[i] <= 90) {
                arr[i] += 32;
                System.out.print(arr[i]);


            } else if (arr[i] >= 48 && arr[i] <= 57) {
                arr[i] = 48;
                System.out.print(arr[i]);
            } else System.out.print("#");
        }
    }
}
